﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
using System.Runtime.InteropServices;
using System.Diagnostics;
using System.Windows.Forms;
using DeathByCaptcha;

namespace OmegleStormer
{
    class Captcha
    {
        Client client;

        public bool PerformLogin(string username, string password)
        {
            client = (Client)new SocketClient(username, password);
            client.Verbose = true;
            return true;


        }

        public void ReportCaptcha(int ID)
        {
            client.Report(ID);
        }

        public string SolveCatpcha(byte[] image, out int ID)
        {
            var n = client.Decode(image);
            ID = n.Id;
            return n.Text;
        }
    }
}